<template>
	<!-- 父组件也可调用子组件定义的值，方法； -->
	<view class="">
		<DefineExpose ref="father"></DefineExpose>
		<hr />
		<button @click="clickFather">点击修改子组件</button>
		<navigator url="/pages/demo5-uniLife/demo5-uniLife?name=王五&age=20">跳转到demo6</navigator>
	</view>
</template>


<script setup>
	import {ref,onMounted} from 'vue';
	
const father = ref('')

const clickFather = ()=> {
	father.value.updateConunt()
}

onMounted(()=>{
	console.log(father.value)
})
</script>


<style lang="scss" scoped>
	
</style>
